﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <link href="EasyUI/themes/icon.css" rel="stylesheet" />
    <script src="EasyUI/jquery.min.js"></script>
    <script src="EasyUI/jquery.easyui.min.js"></script>
    <title></title>
</head>
<body>
    <div class="easyui-tabs" style="height: auto; width: 100%;" id="tabs">

    </div>
    <script>
        function addTab(title, url) {
            var height = window.screen.availHeight - 151;
            if ($('#tabs').tabs('exists', title)) {
                $('#tabs').tabs('select', title);
            } else {
                var content = '<iframe scrolling="auto" frameborder="0"  src="' + url + '" style="width:100%;height:'+ height +'px;"></iframe>';
                $('#tabs').tabs('add', {
                    title: title,
                    content: content,
                    closable: true
                });
            }
        }

        $(document).ready(function () {
            //开发时配置
            //addTab("待处理事项", "http://localhost:62886/Pages/YongShui/14.DaiChuGL/DAICHUL.aspx");
            //测试服务器
            //addTab("待处理事项", "http://192.168.1.12:8090/Pages/YongShui/14.DaiChuGL/DAICHUL.aspx");
            //正式服务器
            addTab("待处理事项", "/Pages/YongShui/14.DaiChuGL/DAICHUL.aspx");
        });
    </script>
</body>
</html>